﻿//  -------------------- iSharePoint -------------------- //
// 
//  Company:	IT Complex, LLC
//  Project:	Smart.Common
//  File name:	FormsActionRulesInstance.cs
//  Developer:	Solomatov Igor
//  Created:	15.04.2012
// 
//  -------------------- iSharePoint -------------------- //

using Smart.Common.Rules;

namespace Smart.Common.Forms
{
	/// <summary>
	/// Form action rules instance
	/// </summary>
	public class FormsActionRulesInstance : IRulesInstance
	{
		/// <summary>
		/// Forms context
		/// </summary>
		public FormsContext Ctx { get; set; }

		/// <summary>
		/// Form action rules
		/// </summary>
		public MetaFormRules ActionRules { get; set; }

		/// <summary>
		/// Instance rules
		/// </summary>
		public object Rules
		{
			get { return ActionRules; }
		}

		/// <summary>
		/// Form action rules instance
		/// </summary>
		public FormsActionRulesInstance(MetaFormRules actionRules, FormsContext ctx)
		{
			ActionRules = actionRules;
			Ctx = ctx;
		}
	}
}